

/**
 * 判断是否为移动设备
 * @returns true : 移动设备  false：网页设备
 */
export function isMobile(){
  return window.screenWidth <= 750
}


export function onresizeLayout() {
  if (document.body.clientWidth <= 750) {
    document.getElementsByTagName("html")[0].style.fontSize = "187px";
  }
}

export function splitAddress(address, head = 5, tail = 5) {
  if (address.length < head + tail) return address;
  return address.substr(0, head) + '...' + address.substr(address.length-tail, tail);
}
// let isMobile = false;
